﻿<core:ViewBase x:Class="DXTools.UI.Modules.Statistics.Views.ToolbarView"
    xmlns:core="clr-namespace:DXTools.UI.Core.View;assembly=DXTools.UI.Core"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Margin="0"
    >
    <StackPanel Orientation="Horizontal" Height="65">
        <Border CornerRadius="5" Margin="1,2,1,2" Background="Transparent" BorderBrush="#C0CDDC" BorderThickness="2">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition Height="12"/>
                </Grid.RowDefinitions>
                

                <Button Grid.Row="0"
                        Background="Transparent"
                        Margin="2"
                        Command="{Binding ViewEntitiesCommand}" BorderThickness="0" ToolTipService.ToolTip="View Entity Statistics">
                        <Button.Content>
                            <StackPanel Orientation="Vertical" Grid.Row="0" Background="Transparent">
                                <Image  Source="../Images/viewentities32.png" Stretch="Uniform"/>
                            </StackPanel>
                         </Button.Content> 
                    </Button>
                
                <Grid Grid.Row="1">
                    <Rectangle >
                        <Rectangle.Fill>
                            <SolidColorBrush Color="#C1D9F0" />
                        </Rectangle.Fill>
                    </Rectangle>
                    <TextBlock Text="Record Count" HorizontalAlignment="Center" VerticalAlignment="Center" />
                </Grid>
                    
            </Grid>

        </Border>
        
        <Border CornerRadius="5" Margin="1,2,1,2" Background="Transparent" BorderBrush="#C0CDDC" BorderThickness="2">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition Height="12"/>
                </Grid.RowDefinitions>
                     <Button 
                            Background="Transparent"
                            Margin="3"
                            Command="{Binding ExportToExcelCommand}" BorderThickness="0" ToolTipService.ToolTip="Export to Excel" >
                        <Button.Content>
                            <StackPanel Orientation="Vertical" Grid.Row="0" Background="Transparent">
                                <Image Source="../Images/ExportToExcel32.png" Stretch="Uniform"/>
                            </StackPanel>
                        </Button.Content>
                    </Button>
                <Grid Grid.Row="1">
                    <Rectangle >
                        <Rectangle.Fill>
                            <SolidColorBrush Color="#C1D9F0" />
                        </Rectangle.Fill>
                    </Rectangle>
                    <TextBlock Text="Export" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Grid>
            </Grid>
        </Border>
        
    </StackPanel>
</core:ViewBase>
